package com.zhw.mapper;

import com.zhw.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EmpMapper {


//    @Select("select * from emp limit  #{page},#{pageSize}")
//    List<Emp> getList(Integer page, Integer pageSize);
//
//
//    @Select("SELECT COUNT(*) from emp")
//    Integer getCount();



    public List<Emp> selectAll(String name, Integer gender, LocalDate begin, LocalDate end);

    void delete(int[] ids);

    void insert(Emp emp);

    void update(Emp emp);

    Emp selectById(Integer id);

    Emp Check(Emp emp);

    void deleteById(int id);
}
